Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Oct 14, 2025

This commit introduces a new --include option to the jasmine-to-vitest refactoring schematic. This option allows users to scope the transformation to a specific file or directory within a project.

Previously, the schematic would always process every test file in the entire project. With the include option, users can now run the refactoring on a smaller subset of files, which is useful for incremental migrations or for targeting specific areas of a codebase.

The implementation handles both file and directory paths, normalizes Windows-style path separators, and includes error handling for invalid or non-existent paths.

…schematic

This commit introduces a new `--include` option to the `jasmine-to-vitest` refactoring schematic. This option allows users to scope the transformation to a specific file or directory within a project.

Previously, the schematic would always process every test file in the entire project. With the `include` option, users can now run the refactoring on a smaller subset of files, which is useful for incremental migrations or for targeting specific areas of a codebase.

The implementation handles both file and directory paths, normalizes Windows-style path separators, and includes error handling for invalid or non-existent paths.
…nsformers

This commit removes duplicate entries from the array of transformer functions within the `jasmine-to-vitest` schematic. This is a minor cleanup to improve code readability and maintainability without changing the schematics behavior.
@clydin clydin added the target: major This PR is targeted for the next major release label Oct 14, 2025
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Oct 14, 2025
@clydin clydin merged commit ba18bcc into angular:main Oct 14, 2025
33 checks passed
@clydin clydin deleted the refactor/jasmine-vitest-6 branch October 14, 2025 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker area: @schematics/angular detected: feature PR contains a feature commit target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants